home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / bin / showpicture (.txt) < prev    next >
Microsoft Windows Help File Content  |  1995-07-02  |  2KB  |  54 lines

  1. # Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
  2. # Permission to use, copy, modify, and distribute this material 
  3. # for any purpose and without fee is hereby granted, provided 
  4. # that the above copyright notice and this permission notice 
  5. # appear in all copies, and that the name of Bellcore not be 
  6. # used in advertising or publicity pertaining to this 
  7. # material without the specific, prior written permission 
  8. # of an authorized representative of Bellcore.  BELLCORE 
  9. # MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
  10. # OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
  11. # WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  12. # Conversion from C shell to Bourne shell by Z-Code Software Corp.
  13. # Conversion Copyright (c) 1992 Z-Code Software Corp.
  14. # Permission to use, copy, modify, and distribute this material
  15. # for any purpose and without fee is hereby granted, provided
  16. # that the above copyright notice and this permission notice
  17. # appear in all copies, and that the name of Z-Code Software not
  18. # be used in advertising or publicity pertaining to this
  19. # material without the specific, prior written permission
  20. # of an authorized representative of Z-Code.  Z-CODE SOFTWARE
  21. # MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY
  22. # OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS",
  23. # WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  24. if [ -z "$METAMAIL_TMPDIR" ]
  25.     METAMAIL_TMPDIR=/tmp
  26. if test -z "${X_VIEWER:-}"
  27.     X_VIEWER="xloadimage -view -quiet -geometry +1+1"
  28. # X_VIEWER="xv -geometry +1+1"
  29. if test "$1" = "-viewer" -a ! -z "$2"
  30.     X_VIEWER="$2"
  31.     shift
  32.     shift
  33. if test -z "${DISPLAY:-}"
  34.     echo ""
  35.     echo This message contains a picture, which can currently only be
  36.     echo viewed when running X11.  If you read this message while running
  37.     echo X11, you will be able to see the picture properly.
  38.     exit 0
  39. echo NOTE: TO MAKE THE PICTURE WINDOW GO AWAY, JUST TYPE 'q' IN IT.
  40. echo ""
  41. if test -z "$1"
  42.     $X_VIEWER stdin
  43.     for i
  44.         dir=`dirname $i`
  45.         base=`basename $i`
  46.         if test ! "$base" = "$i"
  47.         then
  48.             cd $dir
  49.         if ln $i $$.PRESS-q-TO-EXIT  > /dev/null 2>&1
  50.         then $X_VIEWER $$.PRESS-q-TO-EXIT
  51.             rm $$.PRESS-q-TO-EXIT 
  52.         else $X_VIEWER "$i"
  53.     done
  54.